package com.huzz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huzz.entity.SysDict;
import com.huzz.vo.SysDictVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 系统字典-业务数据实体映射
*
* @author 童年的纸飞机
* @since 2023-06-07 13:37
*/
@Mapper
public interface SysDictMapper extends BaseMapper<SysDict> {

    /**
    * VO分页查询
    * @param page
    * @param wrapper
    * @return
    */
    IPage<SysDictVO> selectSysDictVOList(Page<SysDict> page, @Param(Constants.WRAPPER) QueryWrapper<SysDict> wrapper);

    /**
    * VO查询(一般用于导出)
    * @param wrapper
    * @return
    */
    List<SysDictVO> selectSysDictVOList(@Param(Constants.WRAPPER) QueryWrapper<SysDict> wrapper);

}